package com.gt.contant;

import lombok.Data;

import java.util.Map;

@Data
public class ServiceAjaxResult implements AjaxResult {

    protected int code;
    protected String msg;
    protected Map data;

    public ServiceAjaxResult(AjaxCode code, Map data) {
        this.code = code.getCode();
        msg = code.getMessage();
        this.data = data;
    }
}
